<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box {
            position: relative;
            width: 1200px;
            height: 300px;
            margin: 100px auto;
            border: 1px solid #000;
        }

        span {
            position: absolute;
            left: 50%;
            padding: 0 20px;
            /* 对行内元素无效 */
            /* transform: translate(-50%, -50%); */
            /* transform: translateX(-50%); */
            transform: translate(-50%, -50%);

            font: 14px "微软雅黑";
            /* font: 20px "微软雅黑"; */

            background-color: #fff;
        }
    </style>
</head>

<body>
    <div class="box">
        <span>oppo产品系列</span>
    </div>
</body>

</html>